import { getFldm } from '@/utils/get-fldm'
export const formItems = async (key: string) => {
  const obj: any = {
    jzsm: [
      {
        disabled: false,
        label: '案件名称',
        prop: 'ajmc',
        type: 'input',
        placeholder: '请输入案件名称',
        iswm: 'Y',
        options: [],
      },
      {
        disabled: false,
        label: '部门受案号',
        prop: 'bmsah',
        type: 'input',
        placeholder: '请输入部门受案号',
        iswm: 'Y',
      },
      {
        disabled: false,
        label: '统一受案号',
        prop: 'tysah',
        type: 'input',
        placeholder: '请输入统一受案号',
        iswm: 'Y',
      },
      {
        disabled: false,
        label: '承办部门',
        multiple: true,
        prop: 'cbbmbms',
        type: 'treeSelectAll',
        placeholder: '请选择承办部门',
        showAll: true,
        options: [],
        iswm: 'Y',
      },
      {
        disabled: false,
        label: '检察官',
        prop: 'cbjcg',
        type: 'input',
        placeholder: '请输入检察官',
        iswm: 'Y',
      },
      {
        disabled: false,
        label: '送扫人',
        prop: 'sqr',
        type: 'input',
        placeholder: '请输入申请人',
        iswm: 'Y',
      },
      {
        disabled: false,
        label: '送扫日期',
        prop: 'sq-rq',
        type: 'daterange',
        placeholderStart: '开始时间',
        placeholderEnd: '结束时间',
        iswm: 'Y',
      },

      {
        disabled: false,
        label: '送扫状态',
        prop: 'smztdm',
        type: 'select',
        placeholder: '请选择送扫状态',
        options: await getFldm('gd038'),
        iswm: 'Y',
      },
    ],
  }
  return obj[key]
}
